package com.design.pattern.structure.facade.points;

public class FacadeService {
    QualifyService qualifyService = new QualifyService();
    PaymentService paymentService = new PaymentService();
    ShippingService shippingService = new ShippingService();


    public void exchange(GiftInfo giftInfo){
        if(qualifyService.isAvailable(giftInfo)) {
            if((paymentService.pay(giftInfo))) {
                String shippingNo = shippingService.delivery(giftInfo);
                System.out.println("物流下单成功，物流单号+" + shippingNo);
            }
        }
    }


}
